<div class="box-body">
    <form class="layui-form" action="{:url('/pur/track/save')}" method="post">
        <div class="layui-form-item">
            <div class="layui-form-item">
                <label class="layui-form-label xrequired">采购单号</label>
                <div class="layui-input-block">
                    <input type="text" autocomplete="off" placeholder="采购单号"  name="purchase_sn" {if isset($track)}value="{$track.purchase.purchase_sn}"{/if} class="layui-input" />
                </div>
            </div>
            <label class="layui-form-label xrequired">物流商</label>
            <div class="layui-input-block">
                <select name="express_id" lay-search>
                    <option value="">请选择</option>
                    {foreach $express as $e}
                    <option {if isset($track) && $track.express_id == $e.express_id}selected{/if} value="{$e.express_id}">{$e.logistics_name}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">追踪号</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="追踪号"  name="track_num" {if isset($track)}value="{$track.track_num}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="备注"  name="remark" {if isset($track)}value="{$track.remark}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">包裹商品</label>
            <div class="layui-input-block">
                <textarea name="package" placeholder="一行一个，请使用英文冒号:隔开(SKU:数量)，不填代表所有" class="layui-textarea">{if isset($skuList)}{$skuList}{/if}</textarea>
            </div>
        </div>
        {if isset($track)}
        <input type="hidden" name="track_id" value="{$track.track_id}">
        {/if}
    </form>
</div>